<?php

namespace app\admin\model\vppz;

use think\Model;
use traits\model\SoftDelete;

class Specialist extends Model
{

    use SoftDelete;



    // 表名
    protected $name = 'vppz_expert';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    // 追加属性
    protected $append = [
        'avator_url'
    ];

	// 获取器直接转换url
	public function getAvatorUrlAttr($value,$data)
    {
        return \addons\vppz\library\Vpower::dourl($data['avator']);
    }

}
